package com.hyj.springcloud;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;

@SpringBootApplication
//1.pom中加了依赖,2.把当前nodule作为eureka client并向eureka server注册自己,3.才可使用该注解.
@EnableEurekaClient
//注册中心不再是eureka时候,用这个注解.如zk,consul
@EnableDiscoveryClient
public class PaymentMain8001 {
    public static void main(String[] args) {
        SpringApplication.run(PaymentMain8001.class, args);
    }
}
